package com.elh.jpa.service;

import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

@Transactional(rollbackFor = Exception.class)
public interface IDeleteService<T extends Serializable,ID> {

    void deleteInBatch(Iterable<T> entities);

    void deleteAllInBatch();

    void deleteById(ID id);

    void delete(T entity);


}
